/*
 * @Author: Sunye
 * @Date: 2025-03-31 15:38:17
 * @LastEditors: Sunye
 * @LastEditTime: 2025-04-11 15:38:53
 * @Description:
 */
// uno.config.ts
import { defineConfig, presetIcons, transformerDirectives } from 'unocss'
import presetUno from '@unocss/preset-uno'
import presetAttributify from '@unocss/preset-attributify'

export default defineConfig({
  // ...UnoCSS
  presets: [presetUno(), presetIcons(), presetAttributify()],
  transformers: [
    transformerDirectives(), // 支持 @apply 指令
  ],
  shortcuts: {
    'bg-custom-image':
      'bg-[url(@/assets/images/headPortrait.gif)] bg-center bg-no-repeat bg-cover',
  },
  // 添加 Element Plus 相关的工具类
  // theme: {
  //   colors: {
  //     primary: 'var(--el-color-primary)',
  //     success: 'var(--el-color-success)',
  //     warning: 'var(--el-color-warning)',
  //     danger: 'var(--el-color-danger)',
  //     info: 'var(--el-color-info)',
  //   },
  // },
})
